package com.imooc.reader.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("role_user")
@Data
public class RoleUser {
    @TableId(type = IdType.AUTO)
    private Integer ruId;
    private Integer roleId;
    private Integer userId;
    public RoleUser(){

    }
    public RoleUser(Integer roleId, Integer userId) {
        this.roleId = roleId;
        this.userId = userId;
    }
}
